import request from '@/utils/request'
/**
 *
 * @param {mobile,password} data
 */
export function login(data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}
export function getInfo(token) {
}
export function logout() {
}
// 获取用户基本资料
export function getUserFile(token) {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}
// 获取用户头像
export function getUserHeadById(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
